from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from . import models


class ArticleSeria(ModelSerializer):
    class Meta:
        model = models.Article
        fields = "__all__"


class UserInfoSeria(serializers.Serializer):
    class Meta:
        model = models.UserInfo
        fields = "__all__"
